package com.iraeta.mapper.sys;

import com.iraeta.entity.SysOrg;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 部门表 Mapper 接口
 * </p>
 *
 * @author chenbin
 * @since 2023-12-18
 */
@Mapper
public interface SysOrgMapper extends BaseMapper<SysOrg> {
    List<SysOrg> selectAllChildrenOrg(@Param("orgId") Integer orgId);
    List<SysOrg> selectAllParentOrg(@Param("orgId") Integer orgId);
}
